package cn.cau.epidemicsurveysystem.service.impl;

import cn.cau.epidemicsurveysystem.bean.PatientInfoBean;
import cn.cau.epidemicsurveysystem.bean.PatientTripBean;
import cn.cau.epidemicsurveysystem.dao.PatientInfoRepository;
import cn.cau.epidemicsurveysystem.dao.PatientTripRepository;
import cn.cau.epidemicsurveysystem.service.WechatTripService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @projectName: gp2023
 * @package: cn.cau.epidemicsurveysystem.service.impl
 * @className: WeChatTripServiceImpl
 * @author: zy
 * @description: TODO
 * @date: 2022/3/3 17:24
 * @version: 1.0
 */
@Service
public class WechatTripServiceImpl implements WechatTripService {
    @Autowired
    PatientTripRepository tripRepository;
    @Autowired
    PatientInfoRepository patientInfoRepository;
    @Override
    public PatientTripBean savePatientTrip(PatientTripBean patientTripBean) {
        return tripRepository.save(patientTripBean);
    }
}
